package g_baseClass;

import java.util.Arrays;

public class ArrayCopy {

	public ArrayCopy(){
		int arry[]={1,2,3,4,5};
		
		int arry2[] = arry.clone();
		int arry3[] = arry;
		
		arry2[0] = 0;
		System.out.println(Arrays.toString(arry));// 바뀌지 안음
		System.out.println(Arrays.toString(arry2));
		
		arry3[0] = 6;
		System.out.println(Arrays.toString(arry));// 바뀜
		System.out.println(Arrays.toString(arry3));
		
		
	}
	public static void main(String[] args) {
		new ArrayCopy();

	}

}
